package com.ydjk.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ydjk.common.annotation.Excel;

import java.util.Date;

/**
 * 推送组用户对象 jk_group_user
 *
 * @author ydjk
 * @date 2023-09-06
 */
@TableName(value = "jk_group_user")
public class JkGroupUser {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 推送组id
     */
    @Excel(name = "推送组id")
    @TableField(value = "group_id")
    private Long groupId;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    @TableField(value = "user_id")
    private Long userId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time")
    private Date createTime;

    @TableField(exist = false)
    private Integer ifReJoin;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getIfReJoin() {
        return ifReJoin;
    }

    public void setIfReJoin(Integer ifReJoin) {
        this.ifReJoin = ifReJoin;
    }
}
